<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<!--[if IE 8]>
<html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<title>接口调试</title>
<load href="__TMPL__Public/css/bootstrap.min.css"/>
<style type="text/css">
h2 { padding-left:10px;}
/* 左边导航 */
.div_left {
background-color: #e4e4e4;
width: 280px;
height:100%; 
overflow-y:scroll;
text-align:left;
margin-right:auto;
margin-top:auto;
float:left;
}

/* 右边内容  */
.div_right{ width:670px; float:right;}

/* .model_box { display: none;}  */
/* .model_box { display: none;}  */
</style>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-header-fixed" id="top" style="width:75%;margin:0 auto; background:#eee; padding:20px;">
	<h2>接口调试</h2>
	<div style="position:relative; width:1000px; marin:0 auto;">
		<div id="fix" class="div_left">
			<ul>
				<li>
					<h3>商铺信息</h3>
					<div class="model_box">
						<p><a href="#shopInfo">获取商铺数据</a></p>
					</div>
				</li>
				<li>
					<h3>广告</h3>
					<div class="model_box">
						<p><a href="#banner">轮播图</a></p>
					</div>
				</li>
				
				
				<li>
					<h3>商品</h3>
					<div class="model_box">
						<p><a href="#goods_list">商品列表</a></p>
						<p><a href="#goods_info">商品详情</a></p>
						<p><a href="#goods_stock_info">商品价格库存详情</a></p>
						<p><a href="#goods_category">商品分类</a></p>
					</div>
				</li>
				
				<li>
					<h3>优惠券</h3>
					<div class="model_box">
						<p><a href="#coupon_list">可领取优惠券列表</a></p>
						<p><a href="#get_coupon">领取优惠券</a></p>
						<p><a href="#user_coupon_list">用户优惠券列表</a></p>
						<p><a href="#get_usable_coupon">用户可用优惠券</a></p>
						<p><a href="#coupon_image">优惠券入口图片</a></p>
					</div>
				</li>
				
				<li>
					<h3>购物车</h3>
					<div class="model_box">
						<p><a href="#cart_list">购物车列表</a></p>
						<p><a href="#add_cart">加入购物车</a></p>
						<p><a href="#edit_goods_num">修改购物车商品数量</a></p>
						<p><a href="#del_goods">删除购物车商品</a></p>
					</div>
				</li> 
				<li>
					<h3>微信统一下单</h3>
					<div class="model_box">
						<p><a href="#create_order">下单</a></p>
						<p><a href="#getPostage">获取邮费</a></p>
					</div>
				</li>
				<li>
					<h3>用户</h3>
					<div class="model_box">
						<p><a href="#get_openid">获取用户openid</a></p>
						<p><a href="#add_user">新增用户(获取用户授权信息)</a></p>
						<p><a href="#user_info">用户详情(头像,昵称,id,openid)</a></p>
						<p><a href="#edit_user_info">编辑用户信息</a></p>
						<p><a href="#send_sms">发送验证码</a></p>
						<p><a href="#bind_phone">验证码验证</a></p>
						<p><a href="#user_orders">用户订单(全部，待付款，待发货，待收货)</a></p>
						<p><a href="#order_info">订单详情</a></p>
						<p><a href="#user_address_list">用户地址列表</a></p>
						<p><a href="#addres_info">地址详情</a></p>
						<p><a href="#add_address">添加/修改地址</a></p>
						<p><a href="#set_default_address">设置默认地址</a></p>
						<p><a href="#del_address">删除地址</a></p>
					</div>
				</li>
				<li>
					<h3>获取省市区</h3>
					<div class="model_box">
						<p><a href="#get_province">获取省</a></p>
						<p><a href="#get_city">获取市</a></p>
						<p><a href="#get_area">获取区</a></p>
					</div>
				</li>
			</ul>
		</div>
		 <div class="div_right">
		 	<div id="shopInfo">
				<h3>商铺信息</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIIndex/getShopInfo')}</p>
				<form method="post" action="{:U('APIIndex/getShopInfo','dtype=xml')}" class="regForm" target="_blank">
					<p>商户id*：<input name="mid" />mid</p>
					<p>　　　　　&nbsp;<button type="submit">点击获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="banner">
				<h3>轮播图</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIBase/index')}</p>
				<form method="post" action="{:U('APIBase/index','dtype=xml')}" class="regForm" target="_blank">
					<p>商户id*：<input name="mid" />mid</p>
					<p>　　　　　&nbsp;<button type="submit">点击获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="goods_list">
				<h3>商品列表</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIGoods/goodsList')}</p>
				<form method="post" action="{:U('APIGoods/goodsList','dtype=xml')}" class="regForm" target="_blank">
					<p>商户id*：<input name="mid" />mid</p>
					<p>　　　　　&nbsp;<button type="submit">点击获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="goods_info">
				<h3>商品详情</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIGoods/goods_info')}</p>
				<form method="post" action="{:U('APIGoods/goods_info','dtype=xml')}" class="regForm" target="_blank">
					<p>商品id*：<input name="gid" />gid</p>
					<p>　　　　　&nbsp;<button type="submit">点击获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="goods_stock_info">
				<h3>商品价格库存详情</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIGoods/goods_stock_info')}</p>
				<form method="post" action="{:U('APIGoods/goods_stock_info','dtype=xml')}" class="regForm" target="_blank">
					<p>商品详情id*：<input name="goods_info_id" />goods_info_id</p>
					<p>　　　　　&nbsp;<button type="submit">点击获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="goods_category">
				<h3>商品分类</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIGoods/getGoodscategorylist')}</p>
				<form method="post" action="{:U('APIGoods/getGoodscategorylist','dtype=xml')}" class="regForm" target="_blank">
					<p>商户id*：<input name="mid" />mid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="coupon_list">
				<h3>可领取优惠券列表</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICoupon/couponList')}</p>
				<form method="post" action="{:U('APICoupon/coupon_list','dtype=xml')}" class="regForm" target="_blank">
					<p>商户id*：<input name="mid" />mid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="get_coupon">
				<h3>领取优惠券</h3>
				<p>接口地址&nbsp;{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICoupon/receiveCoupon')}</p>
				<form method="post" action="{:U('APICoupon/receiveCoupon','dtype=xml')}" class="regForm" enctype="multipart/form-data"  target="_blank">
					<p>商户id*：<input name="mid" />mid</p>
					<p>优惠券id*：<input name="cid" />cid</p>
					<p>　　　　　&nbsp;<button type="submit">点击领取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="userCouponList">
				<h3>用户优惠券列表</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICoupon/userCouponList')}</p>
				<form method="post" action="{:U('APICoupon/userCouponList','dtype=xml')}" class="logForm" target="_blank" enctype="multipart/form-data">
					<p>用&nbsp;&nbsp;户&nbsp;&nbsp;id*：<input name="uid"  placeholder="" />uid</p>
					<p>页码：<input name="page" />page 默认1</p>
					<p>　　　　　&nbsp;<button type="submit">点击获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="get_usable_coupon">
				<h3>用户可用优惠券</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICoupon/getUsableCoupon')}</p>
				<form method="post" action="{:U('APICoupon/getUsableCoupon','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>商品详情id*：<input name="goods_info_id[]" />goods_info_id[]</p>
					<p>商品数量*：<input name="num[]" />num[]</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="coupon_image">
				<h3>优惠券入口图片</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICoupon/index')}</p>
				<form method="post" action="{:U('APICoupon/index','dtype=xml')}" class="regForm" target="_blank">
					<p>商户id*：<input name="mid" />mid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>	
			<div id="cart_list">
				<h3>购物车列表</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICart/cartGoodsList')}</p>
				<form method="post" action="{:U('APICart/cartGoodsList','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>页码*：<input name="page" />page</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="add_cart">
				<h3>加入购物车</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICart/addCart')}</p>
				<form method="post" action="{:U('APICart/addCart','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>商品详情id*：<input name="goods_info_id" />goods_info_id</p>
					<p>商品数量*：<input name="num" />num</p>
					<p>　　　　　&nbsp;<button type="submit">加入</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="edit_goods_num">
				<h3>修改购物车商品数量</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICart/editCartGoodsNum')}</p>
				<form method="post" action="{:U('APICart/editCartGoodsNum','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>购物车id*：<input name="cid" />cid</p>
					<p>数量*：<input name="num" />num</p>
					<p>　　　　　&nbsp;<button type="submit">修改</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="del_goods">
				<h3>删除购物车商品</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APICart/delCartGoods')}</p>
				<form method="post" action="{:U('APICart/delCartGoods','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>购物车id*：<input name="cid" />cid</p>
					<p>　　　　　&nbsp;<button type="submit">删除</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="create_order">
				<h3>下单</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIOrder/createOrder')}</p>
				<form method="post" action="{:U('APIOrder/createOrder','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>商品详情id*：<input name="goods_info_id" />goods_info_id 多个传递形式为goods_info_id="1,2"</p>
					<p>购买数量*：<input name="num" />num 多个传递形式为num="1,2",与商品详情id一一对应</p>
					<p>地址*：<input name="address" />address</p>
					<p>收件人*：<input name="name" />name</p>
					<p>联系电话*：<input name="mobile" />mobile</p>
					<p>用户优惠券id*：<input name="user_coupon_id" />user_coupon_id 没有使用可不传或传0</p>
					<p>　　　　　&nbsp;<button type="submit">下单</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="getPostage">
				<h3>获取邮费</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIOrder/getPostage')}</p>
				<form method="post" action="{:U('APIOrder/getPostage','dtype=xml')}" class="regForm" target="_blank">
					<p>商品详情id*：<input name="goods_info_id" />goods_info_id 多个传递形式为goods_info_id="1,2"</p>
					<p>购买数量*：<input name="num" />num 多个传递形式为num="1,2",与商品详情id一一对应</p>
					<p>省id*：<input name="province_id" />province_id</p>
					<p>　　　　　&nbsp;<button type="submit">获取邮费</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="get_openid">
				<h3>获取用户openid</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIWX/getOpenid')}</p>
				<form method="post" action="{:U('APIWX/getOpenid','dtype=xml')}" class="regForm" target="_blank">
					<p>code*：<input name="code" />code</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="add_user">
				<h3>新增用户</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/addUser')}</p>
				<form method="post" action="{:U('APIUser/addUser','dtype=xml')}" class="regForm" target="_blank">
					<p>openid*：<input name="openid" />openid</p>
					<p>　　　　　&nbsp;<button type="submit">添加</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="user_info">
				<h3>获取用户详情</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/getUserInfo')}</p>
				<form method="post" action="{:U('APIUser/getUserInfo','dtype=xml')}" class="regForm" target="_blank">
					<p>openid*：<input name="openid" />openid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="edit_user_info">
				<h3>编辑用户信息</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/editUserInfo')}</p>
				<form method="post" action="{:U('APIUser/editUserInfo','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>用户昵称*：<input name="nickname" />nickname</p>
					<p>用户头像*：<input name="wxlogo" />wxlogo</p>
					<p>　　　　　&nbsp;<button type="submit">修改</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="send_sms">
				<h3>发送短信验证码</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIBase/sendSMSCode')}</p>
				<form method="post" action="{:U('APIBase/sendSMSCode','dtype=xml')}" class="regForm" target="_blank">
					<p>手机号*：<input name="phone" />phone</p>
					<p>　　　　　&nbsp;<button type="submit">发送</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="bind_phone">
				<h3>验证码验证</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIBase/validateSMSCode')}</p>
				<form method="post" action="{:U('APIBase/validateSMSCode','dtype=xml')}" class="regForm" target="_blank">
					<p>手机号*：<input name="phone" />phone</p>
					<p>验证码*：<input name="code" />code</p>
					<p>用户id*：<input name="uid" />uid</p>
					<p>　　　　　&nbsp;<button type="submit">验证</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="user_orders">
				<h3>用户订单</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIOrder/orderList')}</p>
				<form method="post" action="{:U('APIOrder/orderList','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>订单状态：<input name="status" />status 1.待付款 2.待发货 3.待收货 4.已完成 5.已取消 其他为全部</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="order_info">
				<h3>订单详情</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIOrder/orderInfo')}</p>
				<form method="post" action="{:U('APIOrder/orderInfo','dtype=xml')}" class="regForm" target="_blank">
					<p>订单id*：<input name="oid" />oid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="user_address_list">
				<h3>获取用户地址列表</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/getUserAddressLists')}</p>
				<form method="post" action="{:U('APIUser/getUserAddressLists','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="address_info">
				<h3>获取地址详情</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/addressInfo')}</p>
				<form method="post" action="{:U('APIUser/addressInfo','dtype=xml')}" class="regForm" target="_blank">
					<p>地址id*：<input name="address_id" />address_id</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="add_address">
				<h3>地址添加或修改</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/addOrEditAddress')}</p>
				<form method="post" action="{:U('APIUser/addOrEditAddress','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>地址id：<input name="address_id" />address_id 修改时为必传参数</p>
					<p>收货人*：<input name="username" />username</p>
					<p>联系方式*：<input name="phone" />phone 手机号</p>
					<p>省id：<input name="pid" />pid</p>
					<p>市id：<input name="cid" />cid</p>
					<p>区id：<input name="aid" />aid</p>
					<p>详细地址：<input name="address" />address</p>
					<p>是否默认：<input name="address" />is_default 0否1是</p>
					<p>　　　　　&nbsp;<button type="submit">保存</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="set_default_address">
				<h3>设置默认地址</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/setDefaultAddress')}</p>
				<form method="post" action="{:U('APIUser/setDefaultAddress','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>地址id*：<input name="aid" />aid</p>
					<p>　　　　　&nbsp;<button type="submit">设置</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="del_address">
				<h3>删除地址</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIUser/delUserAddress')}</p>
				<form method="post" action="{:U('APIUser/delUserAddress','dtype=xml')}" class="regForm" target="_blank">
					<p>用户id*：<input name="uid" />uid</p>
					<p>地址id*：<input name="aid" />aid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="get_province">
				<h3>获取省</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIIndex/getProvinces')}</p>
				<form method="post" action="{:U('APIIndex/getProvinces','dtype=xml')}" class="regForm" target="_blank">
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="get_city">
				<h3>获取市</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIIndex/getCities')}</p>
				<form method="post" action="{:U('APIIndex/getCities','dtype=xml')}" class="regForm" target="_blank">
					<p>省id*：<input name="pid" />pid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>
			<div id="get_area">
				<h3>获取区</h3>
				<p>接口地址&nbsp;：{$Think.server.REQUEST_SCHEME}://{$Think.server.HTTP_HOST}{:U('APIIndex/getAreas')}</p>
				<form method="post" action="{:U('APIIndex/getAreas','dtype=xml')}" class="regForm" target="_blank">
					<p>市id*：<input name="cid" />cid</p>
					<p>　　　　　&nbsp;<button type="submit">获取</button> 带*号为必要参数<a href="#top" style="float:right;">回到顶部</a></p>
				</form>
			</div>

			
	
<script src="__TMPL__Public/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
    jQuery(document).ready(function () {
		$('.regForm .getVcode').live('click', function(){
			$('.vcodeForm .mobile').val($('.regForm .mobile').val());
			$('.vcodeForm .appid').val($('.regForm .appid').val());
			$('.vcodeForm .getVcode').trigger('click');
		})
    });
	$("button.add").click(function(){
	  $(this).parent().append("<input type='file' name='files[]'>");
	  return false;
	});
    jQuery("h3").on("click",function(){
    	var self = jQuery(this);
    	var css_state = self.next().css("display");
    	if(css_state=="none"){
    		//self.parent().siblings().find(".model_box").css("display","none");
    		self.next().css("display","block");
    	}else
    		self.next().css("display","none");
    })
    
    window.onload = function (){
	    var oFix = document.getElementById('fix');
	    window.onscroll = function (){
	        if(document.documentElement.scrollTop >= 112){
	            oFix.style.position = 'fixed';
	            oFix.style.top = 0;3
			}else{
	            oFix.style.position = 'relative';
	            oFix.style.top = 0;
	        }
	    }
	}

</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>